<div id="message-list" *ngIf="messages">
    <div *ngFor="let item of messages" class="alert alert-{{item.type}}">
        <a class="message-body" *ngIf="item.link" [routerLink]="item.link" [queryParams]="item.queryParams" [innerHtml]="item.html|safeHtml"></a>
        <div class="message-body" *ngIf="!item.link" [innerHtml]="item.html|safeHtml"></div>
        <span class="close-time" *ngIf="item.time">{{item.time}}s后关闭</span>
        <span class="close" (click)="remove(item)">×</span>
    </div>
</div>
